import { defineStore } from 'pinia';
export const useDashboardStore = defineStore('dashboard', {
  state: () => {
    return {
      designerLayerDropCompState: undefined,
      dashboardThemeConfig: undefined,
      dashboardTempId: '',
    };
  },
  getters: {
    getDesignerLayerDropCompState(state: any) {
      return state.designerLayerDropCompState;
    },
    getDashboardThemeConfig(state: any) {
      return state.dashboardThemeConfig;
    },
    getDashboardTempId(state: any) {
      return state.dashboardTempId;
    },
  },
  actions: {
    setDesignerLayerDropCompState(val: any) {
      this.designerLayerDropCompState = val;
    },
    setDashboardThemeConfig(val: any) {
      this.dashboardThemeConfig = val;
    },
    setDashboardTempId(val: string) {
      this.dashboardTempId = val;
    },
  },
});
